#include<stdio.h>
int main()
{
    int arr[20];
    int i=0;
    while(~scanf("%d",&arr[i]))
    {
        i++;
    }
    int left = 0;
    int right = i-1;
    while(left<right)
    {
        int tmp = arr[left];
        arr[left] = arr[right];
        arr[right] = tmp;
        left++;
        right--;
    }
    for(int j=0;j<=i-1;j++)
    {
        printf("%d",arr[j]);
        if(j!=i-1)
        {
            printf(" ");
        }
    }
    return 0;
}